package com.bdk.middle.orchestration.api.client;

import com.bdk.middle.common.result.ResultDO;
import com.bdk.middle.orchestration.api.domain.CategoryDO;
import com.bdk.middle.orchestration.api.query.CategoryQueryDO;
import org.springframework.web.bind.annotation.*;


public interface CategoryClientApi {

    /**
     * 添加类目
     * @param domain 用户DO
     * @return ResultDO
     */
    @RequestMapping(value="/category_cliet_api/add.html", method = RequestMethod.POST)
    public @ResponseBody ResultDO add(@RequestBody CategoryDO domain);

    /**
     * 修改类目信息
     * @param domain 用户DO
     * @return ResultDO
     */
    @RequestMapping(value="/category_cliet_api/edit.html", method = RequestMethod.POST)
    public @ResponseBody ResultDO edit(@RequestBody CategoryDO domain);

    /**
     * 获取类目详情
     * @param id 用户ID
     * @return ResultDO
     */
    @RequestMapping(value="/category_cliet_api/get.html",  method = RequestMethod.POST)
    public @ResponseBody ResultDO get(@RequestParam String id);

    /**
     * 删除类目
     * @param id 用户ID
     * @return ResultDO
     */
    @RequestMapping(value="/category_cliet_api/remove.html", method = RequestMethod.POST)
    public @ResponseBody ResultDO remove(@RequestParam String id);

    /**
     * 查找类目列表分页
     * @param domain 查询DO
     * @return ResultDO
     */
    @RequestMapping(value="/category_cliet_api/find.html", method = RequestMethod.POST)
    public @ResponseBody ResultDO find(@RequestBody CategoryQueryDO domain);


}
